using System;
using System.Collections.Generic;
using System.Text;

namespace AIFSContentManagementSystem.Articles.Messages
{
    public class GetFilteredArticleListResponse : ResponseBase
    {
        List<Article> articleList;

        public List<Article> ArticleList
        {
            get { return articleList; }
            set { /*in place just for web service*/ }
        }

        public GetFilteredArticleListResponse()
        {
            articleList = new List<Article>();
        }

        internal void AddArticle(Article article)
        {
            if (article != null)
            {
                articleList.Add(article);
                this.SetHasDataInReturn();
            }
        }

        internal void AddArticle(List<Article> articles)
        {
            if (articles != null && articles.Count > 0)
            {
                articleList = articles;
                this.SetHasDataInReturn();
            }
        }
    }
}
